home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 2
/
Geek_Gadgets_2_2352.bin
/
lists
/
ade-gcc.archive.9602.gz
/
ade-gcc.archive.9602
/
000080_owner-ade-gcc_Fri Feb 16 02:35:14 1996.msg
< prev
next >
Wrap
Internet Message Format
|
1996-02-28
|
2KB
Return-Path: <owner-ade-gcc>
Received: by fishpond (Smail3.1.29.1 #57)
id m0tnKfJ-000gXXa; Fri, 16 Feb 96 02:33 EST
Sender: owner-ade-gcc
Received: from ernie.icslab.agh.edu.pl by fishpond with smtp
(Smail3.1.29.1 #57) id m0tnKfC-000gXUC; Fri, 16 Feb 96 02:33 EST
Received: (from kiskra@localhost) by ernie.icslab.agh.edu.pl (8.6.12/8.6.12) id IAA18131; Fri, 16 Feb 1996 08:32:30 +0100
Date: Fri, 16 Feb 1996 08:32:29 +0100 (MET)
From: Kamil Iskra <kiskra@ernie.icslab.agh.edu.pl>
To: Niels M�ller <nisse@lysator.liu.se>
cc: ADE GCC List <ade-gcc@amigalib.com>
Subject: Re: Passing arguments in registers - first attempt.
In-Reply-To: <199602152142.WAA07220@tingeling.lysator.liu.se>
Message-ID: <Pine.SUN.3.91.960216082728.17900A-100000@ernie>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Content-Transfer-Encoding: QUOTED-PRINTABLE
Sender: owner-ade-gcc@ninemoons.com
Precedence: bulk
On Thu, 15 Feb 1996, Niels M=F6ller wrote:
> Say ixemul defines the function open, declared in unistd.h like
>=20
> int open(char * name, int mode);
>=20
> ixemul expects arguments to be passed in registers. Then, using some
> future or present feature of gcc, change the prototype in unistd.h=20
>=20
> int open(char *name, int mode) __attribute((stackparms));
>=20
> This should make gcc put the arguments for the function open() on the
> stack, even if -mregargs was specified on the command line.
Now I understand.=20
I see two possible problems:=20
1. LibNIX uses the same header files. However, this is a linker library so
it wouldn't be hard to make it accept arguments in registers.=20
2. A lot of headers would have to be modified. I don't know whether Hans
would like it.=20
/ Kamil Iskra - AMIGA 1200, 68030 50MHz, HDD 850 MB, 10 MB RAM \
| iskra@student.uci.agh.edu.pl kiskra@ernie.icslab.agh.edu.pl |
| http://student.uci.agh.edu.pl/~iskra |
\ PGP public key available via Finger or WWW /